//引用Vuex
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

//实例store对象
const store = new Vuex.Store({
    state: {
        setting: {
            ip: '192.168.1.1',
            port: 3305,
            highDistance: 40,
            midDistance: 40,
            lowDistance: 40,
        },
        connectState: true,
    },
    //mutations是修改store数据入口
    mutations: {}
})

//导出store对象
export default store